package crawlingtosea.shapes
{
	import crawlingtosea.core.C2Shape;
	
	/**
	 * 
	 * @author mengtianwxs
	 * @createTime 2013-9-9
	 */
	
	public class Line extends C2Shape
	{
		
		
		public function Line(length:Number=20,direction:int=0)
		{
			drawLine(length,direction);	
		}
		
		protected function drawLine(length:Number,direction:int):void
		{
			graphics.clear();
			graphics.lineStyle(1);
			if(direction==0)
			{
				graphics.lineTo(length,0);
			}
			else
			{
				graphics.lineTo(0,length);
				
			}
			graphics.endFill();
			this.x=-5;
			
		}
	}
}